//
//  BCTimerHandler.h
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/5.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol BCTimerHandlerDelegate <NSObject>

- (void)timerHandlerRepeatsAction;

@end

@interface BCTimerHandler : NSObject

/**
 *timer
 */
@property (nonatomic, strong, readonly) NSTimer *timer;

/**
 * timeInterval timer 间隔 default = 1s
 */
@property (nonatomic, assign) NSTimeInterval timeInterval;

/**
 * BCTimerHandlerDelegate
 */
@property (nonatomic, weak) id <BCTimerHandlerDelegate> delegate;

- (void)start;
- (void)stop;

@end

